home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 June: Reference Library / Dev.CD Jun 99 RL Disk 1.toast / What's New / Development Kits / Mac_OS_USB_DDK_v1.2 / Examples / USBModem / ShimSerialHAL.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-04-15  |  1.6 KB  |  56 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        ShimSerialHAL.h
  3.  
  4.     Contains:    Definitions for the Modem Serial Driver
  5.  
  6.     Version:    xxx put version here xxx
  7.  
  8.  
  9.                 
  10.     Copyright:    © 1995-1998 by Apple Computer, Inc., all rights reserved.
  11.  
  12. */
  13.  
  14. #ifndef    _SHIMSERIALHAL_
  15. #define    _SHIMSERIALHAL_
  16.  
  17. //    masks for getting & setting serial config info
  18.  
  19. #define kSerConfigBaudMask            0x03FF
  20. #define kSerConfigLenMask            0x0C00
  21. #define kSerConfigParityMask        0x3000
  22. #define kSerConfigStopMask            0xC000
  23.  
  24. #define kpciGetDCD                    256
  25.  
  26. /********************************************************************************************/
  27. //
  28. //    Prototypes
  29. //
  30. /********************************************************************************************/
  31.  
  32. OSErr     SerHAL_Entry(UInt16 HdwSelector, ParmBlkPtr pb, UInt32 RefCon);
  33.  
  34. OSErr    HAL_SetConfiguration(UInt16 config);
  35. OSErr    HAL_SetInputBuffer(Ptr newBuf, UInt16 bufLen);
  36. void     HAL_SetFlowControl(SerShk *shkNew, UInt16 csCode);
  37. void    HAL_SendXOn(Boolean always);
  38. void    HAL_SendXOff(Boolean always);
  39. void     HAL_SetXOffFlag(Boolean state);
  40. void    HAL_GetStatus(SerStaRec *statRec);
  41. UInt32    HAL_GetBuffer(void);
  42. UInt16    HAL_SetDTERate(UInt32 baudRate);
  43. void    HAL_SetParity(Boolean alt, char peChar, char peAltChar);
  44. OSErr     HAL_FillReadRequest(IOParam *pb);
  45. void     HAL_EnableSerialDevice(void);
  46. void     HAL_DisableSerialDevice(void);
  47. void     HAL_InputFlowControl(void);
  48. void     HAL_EnableInput(Boolean enable);
  49. void     HAL_EnableOutput(void);
  50. OSErr    HAL_DoOpenSession(void);
  51. OSErr    HAL_DoCloseSession(void);
  52. OSErr     HAL_ControlExtend(ParmBlkPtr pb);
  53. OSErr     HAL_StatusExtend(ParmBlkPtr pb);
  54. void     HAL_ShimInput(UInt8 *buf, UInt32 count);
  55.  
  56. #endif